#include<stdio.h>//
// Created by baoch on 2024/10/26.
int main()
{
    double h = 100.00;//初始下落高度
    int n = 0;//下落n次
    double s = 0.0;//每次反弹的高度
    int i = 1;//控制循环
    double sum = 0.00;
    scanf("%d",&n);
    while(i <= n)
    {
         sum +=  s + h;
        s = h / 2;
        h = h / 2;
        i++;
    }
   printf("%.4lf %.4lf\n",sum,s);
    return 0;

}
